using System.Globalization;
using System.Runtime.CompilerServices;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using UnityEngine.Pool;

public class Main : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {

        SoundMgr.GetInstance().Init();
        SoundMgr.GetInstance().PlayMusic("freeBg");
        
        //  ObjectPool<GameObject> pool = new ObjectPool<GameObject>();


        
        // GameObject _canvas = GameObject.Find("Canvas");
        // _canvas.transform.Find("GameScene").gameObject.SetActive(false);
        // _canvas.transform.Find("LoginScene").gameObject.SetActive(true);
        // GameObject.Find("Canvas/GameScene/DoubleClickButton").GetComponent<DoubleClickButton>().onDoubleClick.AddListener(()=>
        // {
        //    print("双击"); 
        // });
        
        // // GameObject.Find("Canvas/GameScene/DoubleClickButton").GetComponent<DoubleClickButton>().onClick.AddListener(()=>
        // // {
        // //    print("单机"); 
        // // });
        // print("************************" + GameObject.Find("Canvas/GameScene/LongClickButton").GetComponent<LongClickButton>().onLongClick);
        // GameObject.Find("Canvas/GameScene/LongClickButton").GetComponent<LongClickButton>().onLongClick.AddListener(()=>
        // {
        // //    print("长按1111");
        // });
        

        // GameObject.Find("Canvas/GameScene/LongClickButton").GetComponent<LongClickButton>().onLongUpdate.AddListener(()=>
        // {
        //    print("长按1111回调");
        // });


    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
